package com.example.springboot_demo.service.impl;

import com.example.springboot_demo.domain.User;
import com.example.springboot_demo.mapper.UserMapper;
import com.example.springboot_demo.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional
public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapper userMapper;

    @Override
    public User login(String username, String passowrd) {
        User user = userMapper.login(username, passowrd);
        return user;
    }
}
